import base from '@/api/baseurl'
import request from '@/utils/request'



/**
 * 获取曲线拼接类型数据
 * @param {*} query
 * @returns  code ,name
 */
 export function findcvtype(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/movingverage/findcvtype',
    method: 'get',
    params: query
  })
}

/**
 * 获取曲线拼接名称数据
 * @param {*} query code
 * @returns  id cv_name
 */
 export function findcvlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/splicing/findcvlist',
    method: 'get',
    params: query
  })
}

/**
 * 获取曲线拼接期限点数据
 * @param {*} query 
 * @returns  
 */
 export function findtermlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/splicing/findtermlist',
    method: 'get',
    params: query
  })
}



/**
 * 添加曲线拼接期限点数据
 * @param {*} query 
 * @returns  
 */
export function addSplicingzi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/splicing/addSplicingzi ',
    method: 'post',
    data
  })
}
